package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//@FeignClient(name = "service-vod", fallback = VodFileDegradeFeignClient.class)  * 熔断器测试，这个功能直接用不了
@FeignClient(name = "service-vod")
@Component
public interface VodClient {
	@DeleteMapping(value = "/eduvod/video/{videoId}")
	public R removeVideo(@PathVariable("videoId") String videoId);

	@DeleteMapping(value = "/eduvod/video/delete-batch")
	public R removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
